package fr.nantes.guidetouristique;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class CircuitTabActivity extends TabActivity{

	private TabHost tabHost;
	private TabSpec tabSpec;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.tab);
		
		tabHost = getTabHost();
		Intent listeIntent = new Intent(this, CircuitActivity.class);
		Intent mapIntent = new Intent(this, MapGlobaleActivity.class);
		
        tabSpec = tabHost.newTabSpec("liste").setIndicator("liste").setContent(listeIntent);
        tabHost.addTab(tabSpec);
        
        tabSpec = tabHost.newTabSpec("map").setIndicator("map").setContent(mapIntent);
        tabHost.addTab(tabSpec);
	}
	
}
